Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 29, 2026

Motivation

  • Ensure the Heroe carousel always loops infinitely and advances one slide at a time while keeping the active slide visually centered in the viewport.
  • Make looping unconditional to satisfy the requirement for continuous scrolling even if the dataset attribute is unset or disabled.
  • No external skills were required to implement this change.

Description

  • Force loop = true in the initHeroeCarousels initialization to enable infinite scrolling unconditionally in views/js/everblock.js.
  • Preserve and use the updateSlides() centering logic which computes a centerOffset, applies it to track.style.paddingLeft and track.style.paddingRight, and sets the horizontal translation using offset = index * slideWidth so the active slide is centered.
  • Keep existing navigation and state logic intact so previous/next buttons remain enabled when looping and slide role classes (is-active, is-prev, is-next) continue to be assigned correctly.

Testing

  • No automated tests were executed for this change.

Codex Task

@CySSoO CySSoO merged commit a43645c into master Jan 29, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants